{include file="header.tpl"}
<!-- CONTENT START -->
<div class="grid_16" id="content">
    <!--  TITLE START  -->
    <div class="grid_9">
        <h1 class="dashboard">Dashboard</h1>
    </div>
    <!--RIGHT TEXT/CALENDAR-->
    <div class="grid_6" id="eventbox">
        <a href="#" class="inline_calendar"> You don't have any events for today! Yay! </a>
        <div class="hidden_calendar">
        </div>
    </div>
    <!--RIGHT TEXT/CALENDAR END-->
    <div class="clear"></div>
    <!--  TITLE END  -->
    <!-- #PORTLETS START -->
    <div id="portlets">
   		{if $msg_state neq ""}
		<p class="info" id="{$msg_state}"><span class="info_inner">{$msg}</span></p>
		{/if}

		<!-- SORTABLE COLUMN START -->
        <div class="column" id="left">
            1
            <div class="portlet">
                <div class="portlet-header">添加父单元(父分类)</div>
                <div class="portlet-content">
                    <form id="" name="pcat" method="post" action="category.php">
                        <table width="100%" cellpadding="0" cellspacing="0" class="box-table-b" summary="">
                            <tbody>
                                <tr>
                                    <td><strong>所属单元(分类)</strong></td>
                                    <td><select class="smallInput" name="unit">
                                        <option value="">默认选项 (空值)</option>
                                        <option value="1">文章</option>
                                        <option value="2">模块</option>
                                        <option value="3">插件</option>
                                        <option value="4">模板</option>
                                        <option value="5" selected="selected">菜单</option>
                                    </select></td>
                                </tr>
                                <tr>
                                    <td><strong>名称</strong></td>
                                    <td><input class="smallInput" type="text" name="name"/></td>
                                </tr>
                                <tr>
                                    <td><strong>描述</strong></td>
                                    <td><input class="smallInput" type="text" name="description"/></td>
                                </tr>
                            </tbody>
                        </table>
                        <p style="float:right;clear:both;"> <a class="button" onclick="pcat.submit();"><span>Submit in {$style}</span> </a> </p>
                    </form>
                </div>
            </div>
        </div>
        <div class="column">
            2
            <div class="portlet">
                <div class="portlet-header"> 添加子单元(子分类)</div>
                <div class="portlet-content">
                    <form id="" name="subcat" method="post" action="category.php">
                        <table width="100%" cellpadding="0" cellspacing="0" class="box-table-b" summary="">
                            <tbody>
                                <tr>
                                    <td><strong>所属模块</strong></td>
                                    <td><select class="smallInput" name="unit">
                                        <option value="">默认选项 (空值)</option>
                                        <option value="1">文章</option>
                                        <option value="2">模块</option>
                                        <option value="3">插件</option>
                                        <option value="4">模板</option>
                                        <option value="5" selected="selected">菜单</option>
                                    </select></td>
                                </tr>
                                <tr>
                                    <td><strong>父级分类</strong></td>
                                    <td>
                                    <select class="smallInput" name="pid">
                                    		{foreach item=item from=$p_list}
                                            <option value="{$item.c_id}">{$item.c_name}</option>
                                            {/foreach}
                                    </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td><strong>分类名</strong></td>
                                    <td><input class="smallInput" type="text" name="name"/></td>
                                </tr>
                                <tr>
                                    <td><strong>分类描述</strong></td>
                                    <td><input class="smallInput" type="text" name="description"/></td>
                                </tr>
                            </tbody>
                        </table>
                        <p style="float:right;clear:both;"> <a class="button" onclick="subcat.submit();"><span>Submit in {$style}</span> </a> </p>
                    </form>
                </div>
            </div>
        </div>
        <div class="column">
            3
        </div>
        <div class="column">
            4
        </div>
        <!-- SORTABLE COLUMN END -->
        <div class="clear"></div>
        <!--THIS IS A WIDE PORTLET-->
        <div class="portlet">
            <div class="portlet-header fixed">
                <img src="{$base_path}/images/icons/models.gif"  width="16" height="16" alt="Latest Registered Users" /> Last Registered users Table Example
            </div>
            <div class="portlet-content nopadding">
                <form action="" method="post">
                    <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                        <thead>
                            <tr>
                                <th width="34" scope="col"><input type="checkbox" name="allbox" id="allbox" onclick="checkAll()" /></th>
                                <th width="136" scope="col">分类名</th>
                                <th width="102" scope="col">描述</th>
                                <th width="109" scope="col">所属单元</th>
                                <th width="129" scope="col">sid</th>
                                <th width="171" scope="col">父分类</th>
                                <th width="90" scope="col">Actions</th>
                            </tr>
                        </thead>
                        <tbody>
                        {foreach item=item from=$list}
                        <tr>
                            <td width="34"><input type="checkbox" name="" id="" value="{$item.c_id}"/></td>
                            <td>{$item.c_name}</td>
                            <td>{$item.c_description}</td>
                            <td>{$item.c_unit}</td>
                            <td>{$item.c_sid}</td>
                            <td>{$item.c_pid}</td>
                            <td width="90">
							<a href="#" class="approve_icon" title="Approve"> </a> 
							<a href="#" class="reject_icon" title="Reject"> </a> 
							<a href="#" class="edit_icon" title="Edit"> </a> 
							<a href="?action=delete&id={$item.c_id}" class="delete_icon" title="Delete"> </a></td>
                        </tr>
                        {/foreach}
                        <tr class="footer">
                            <td colspan="3"><a href="#" class="edit_inline"> Edit all </a> <a href="#" class="delete_inline"> Delete all </a> <a href="#" class="approve_inline"> Approve all </a> <a href="#" class="reject_inline"> Reject all </a></td>
                            <td colspan="4" align="right">
								{include file="pagination.tpl"}
							</td>
                        </tr>
                        </tbody>
                        
                    </table>
                </form>
            </div>
        </div>
    </div>
    <!--  END #PORTLETS -->
    <div class="clear"></div>
</div>
<!-- END CONTENT-->
<div class="clear">
</div>
<!-- This contains the hidden content for modal box calls -->
<div class='hidden'>
    <div id="inline_example1" title="This is a modal box" style='padding:10px; background:#fff;'>
        <p><strong>This content comes from a hidden element on this page.</strong></p>
        <p><strong>Try testing yourself!</strong></p>
        <p>You can call as many dialogs you want with jQuery UI.</p>
    </div>
</div>
</div>
<!-- WRAPPER END -->
{include file="footer.tpl"}